package Niuke;

public class Solution {
    public String LeftRotateString(String str,int n) {
        int len = str.length();
        if (str == null || len == 0) {
            return "";
        }
        n = n % len;
        str += str;
        return str.substring(n, len);
    }
}